package com.spdzen.service;

import java.util.List;

import com.spdzen.model.SysDept;
import com.spdzen.support.PageNumParam;
import com.spdzen.support.PageOffsetParam;
import com.spdzen.support.SimplePage;
import com.spdzen.support.SimpleService;
import com.spdzen.support.result.ResultCode;
import com.spdzen.vo.SysDeptAdminVO;
import com.spdzen.vo.search.SysDeptAdminSearch;

/**
 * 服务类
 */
public interface SysDeptService extends SimpleService<SysDept> {

	SysDeptAdminVO selectOneAdminVO(Long id);

	List<SysDeptAdminVO> selectAdminVO(SysDeptAdminSearch search);

	void inserIfPermission(SysDept entity) throws Exception;

	void updateIfPermission(SysDept entity) throws Exception;

	SimplePage<SysDeptAdminVO> selectPage(PageOffsetParam param, SysDeptAdminSearch search);

	SimplePage<SysDeptAdminVO> selectPage(PageNumParam param, SysDeptAdminSearch search);

	ResultCode deleteIfPermission(Long id);
	
}
